﻿using System.Data.Linq;
using System.Data.Linq.Mapping;

namespace WeiboPlus.Models
{
    [Table(Name = "sns_emotion")]
    public class SNSEmotion : NotificationObject
    {
        string _url;
        [Column(Name = "url", IsPrimaryKey = true)]
        public string Url
        {
            get
            {
                return _url;
            }
            set
            {
                RaisePropertyChanging("Url");
                _url = value;
                RaisePropertyChanged("Url");
            }
        }

        string _phrase;
        [Column(Name = "phrase")]
        public string Phrase
        {
            get
            {
                return _phrase;
            }
            set
            {
                RaisePropertyChanging("Phrase");
                _phrase = value;
                RaisePropertyChanged("Phrase");
            }
        }

        string _type;
        [Column(Name = "type")]
        public string Type
        {
            get
            {
                return _type;
            }
            set
            {
                RaisePropertyChanging("Type");
                _type = value;
                RaisePropertyChanged("Type");
            }
        }

        bool _isHot;
        [Column(Name = "is_hot")]
        public bool IsHot
        {
            get
            {
                return _isHot;
            }
            set
            {
                RaisePropertyChanging("IsHot");
                _isHot = value;
                RaisePropertyChanged("IsHot");
            }
        }

        int _orderNumber;
        [Column(Name = "order_no")]
        public int OrderNumber
        {
            get
            {
                return _orderNumber;
            }
            set
            {
                RaisePropertyChanging("OrderNumber");
                _orderNumber = value;
                RaisePropertyChanged("OrderNumber");
            }
        }

        string _category;
        [Column(Name = "category")]
        public string Category
        {
            get
            {
                return _category;
            }
            set
            {
                RaisePropertyChanging("Category");
                _category = value;
                RaisePropertyChanged("Category");
            }
        }

        [Column(IsVersion = true)]
#pragma warning disable 0168, 0169
        private Binary _version;
#pragma warning restore 0168, 0169
    }
}
